﻿using NewRetail.Application.Core.Entity;
using System;

namespace NewRetail.Application.Components.Platform.Entity
{
    /// <summary>
    /// 会员促销规则，生日双倍积分，88折等
    /// </summary>
    public class PosMemberPromotionRule : BaseEntity, IReceiptEntity, IWarehouseEntity
    {
        /// <summary>
        /// 仓库编号
        /// </summary>
        public string warehouseID { get; set; }
        /// <summary>
        /// 促销类型。0：生日  1：其它
        /// </summary>
        public string promotionType { get; set; }
        /// <summary>
        /// 积分规则。单倍或双倍积分等
        /// </summary>
        public decimal integralRule { get; set; }
        /// <summary>
        /// 打折率
        /// </summary>
        public decimal discountRate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string remark { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime startTime { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime endTime { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string receiptNo { get; set; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime receiptDate { get; set; }
        /// <summary>
        /// 是否审核
        /// </summary>
        public bool isAuditing { get; set; }
        public int? operateUserID { get; set; }
        public DateTime? operateTime { get; set; }

        public Warehouse.Entity.Warehouse Warehouse { get; set; }
    }
}
